﻿<UserControl x:Class="MyFloridaHouse.libSvUIControls.MiniMap"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
    mc:Ignorable="d"                 
    Width="110" Height="110">



    <Canvas x:Name="LayoutCanvas" Canvas.ZIndex="99" Width="110" Height="110"  >

        <Border x:Name="MapBorder"  BorderBrush="LightBlue" BorderThickness="1" Grid.Column="0" Grid.Row="1">
            <Border BorderBrush="LightGray" BorderThickness="1">
                <Border BorderBrush="BlanchedAlmond" BorderThickness="1">
                    <Border BorderBrush="LightGray" BorderThickness="1">
                        <Border BorderBrush="LightBlue" BorderThickness="1">

                            <m:Map x:Name="myMiniMapControl"
                                CredentialsProvider=""
                                Width="100" Height="100" Mode="Road"
                                LogoVisibility="Collapsed" 
                                ScaleVisibility="Collapsed" 
                                NavigationVisibility="Collapsed"
                                CopyrightVisibility="Collapsed"  
                                Center="{Binding Center, Mode=TwoWay}"
                                ZoomLevel="{Binding ZoomLevel, Mode=TwoWay}"
                                MousePan="MiniMap_MousePan"
                                MouseWheel="MiniMap_MouseWheel"
                                MouseLeftButtonUp="MiniMap_MouseLeftButtonUp"
                                MouseLeftButtonDown="MiniMap_MouseLeftButtonDown"
                            >
                            </m:Map>


                        </Border>
                    </Border>
                </Border>
            </Border>
        </Border>
        <Rectangle  x:Name="miniMapMinimizeButton" Grid.Column="1" MouseLeftButtonDown="MiniMapMinimize_MouseLeftButtonDown" Height="20" Width="20" Canvas.Left="110" Fill="AntiqueWhite"></Rectangle>
    </Canvas>
</UserControl>
